package mate.events
{
	import classespinkpony.Practice;
	import classespinkpony.Profession;
	import classespinkpony.User;
	
	import flash.events.Event;
	
	public class LoginEvent extends Event
	{
		public static const LOGINUSER:String = "loginUser";
		public static const LOADCONTROLPANEL:String = "loadControlPanel";
		public static const GETPROFESSION:String = "getProfession";
		
		private var _user:User;
		private var _practice:Practice;
		private var _profession:Profession;
		private var _searchSpecialization:Number;
		
	/**	[Bindable]
		public function set username(username:String):void{
			this._username = username;
		}
		public function get username():String{
			return this._username;
		}
		
		[Bindable]
		public function set password(password:String):void{
			this._password = password;
		}
		public function get password():String{
			return this._password;
		}
		 **/
		
		[Bindable]
		public function set user(user:User):void{
			this._user = user;
		}
		public function get user():User{
			return this._user;
		}
		
		[Bindable]
		public function set practice(practice:Practice):void{
			this._practice = practice;
		}
		public function get practice():Practice{
			return this._practice;
		}
		
		[Bindable]
		public function set profession(profession:Profession):void{
			this._profession = profession;
		}
		public function get profession():Profession{
			return this._profession;
		}
		
		[Bindable]
		public function set searchSpecialization(searchSpecialization:Number):void{
			this._searchSpecialization = searchSpecialization;
		}
		public function get searchSpecialization():Number{
			return this._searchSpecialization;
		}
		
		public function LoginEvent(type:String, user:User,  bubbles:Boolean=true, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.user = user;
		}
	}
}